{% extends "contact/base.html" %}
{% block content %}
<p> <a href="{{ url_for('contact.index') }}"> Contact: </a> </p>
<table>
	<tr> <th> Фамилия: </th> <td> {{ item.lastname }} </td> </tr>
	<tr> <th> Имя: </th> <td> {{ item.firstname }} </td> </tr>
	<tr> <th> Отчество: </th> <td> {{ item.midname }} </td> </tr>
	<tr> <th> Адрес: </th> <td>
		{% if item.addresses.count() %}
			<ul>
			{% for address in item.addresses %}
				<li> {{ address.value }} </li>
			{% endfor %}
			</ul>
		{% else %}
			&lt;нету&gt;
		{% endif %}
	</td> </tr>
</table>
<p>
 [ <a href="{{ url_for('contact.edit', id=item.id) }}"> Edit </a> ]
 [ <a href="{{ url_for('contact.delete', id=item.id) }}"> Del </a> ]
</p>
{% endblock %}
